<!--
    THIS EXAMPLE WAS DOWNLOADED FROM https://echarts.apache.org/examples/zh/editor.html?c=dataset-simple1
-->
<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <meta charset="utf-8">
    </head>
    <body style="height: 100%; margin: 0">
        <div id="container" style="height: 100%"></div>

        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
        <!-- Uncomment this line if you want to dataTool extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/dataTool.min.js"></script>
        -->
        <!-- Uncomment this line if you want to use gl extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js"></script>
        -->
        <!-- Uncomment this line if you want to echarts-stat extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat@latest/dist/ecStat.min.js"></script>
        -->
        <!-- Uncomment this line if you want to use map
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/map/js/china.js"></script>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/map/js/world.js"></script>
        -->
        <!-- Uncomment these two lines if you want to use bmap extension
        <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=<Your Key Here>"></script>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/bmap.min.js"></script>
        -->

        <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};

var option;



option = {
    title: {
        text: '2016年新加坡每月销售的每个产品利润总金额TOP3产品',
        top: 'bottom',
        left: 'center'
    },
    legend: {},
    tooltip: {},
    dataset: {
        dimensions: ['product', '棒球手套','棒球与棒球袋', '棒球服','头盔'],
        source: [
            {product: '1月', '棒球手套': 97964, '棒球与棒球袋': 17309, '棒球服': 3550},
            {product: '2月', '棒球手套': 99464, '棒球与棒球袋': 21346, '棒球服': 3600},
            {product: '3月', '棒球手套': 102334, '棒球与棒球袋': 22345, '头盔': 4189},
            {product: '4月', '棒球手套': 100018, '棒球与棒球袋': 24386, '棒球服': 4600},
            {product: '5月', '棒球手套': 79122, '棒球与棒球袋': 21425, '头盔': 4602},
            {product: '6月', '棒球手套': 82205, '棒球与棒球袋': 32596, '头盔': 3953},
            {product: '7月', '棒球手套': 58221, '棒球与棒球袋': 4007, '头盔': 1534}
        ]
    },
    xAxis: {type: 'category'},
    yAxis: {},
    // Declare several bar series, each will be mapped
    // to a column of dataset.source by default.
    series: [
        {type: 'bar'},
        {type: 'bar'},
        {type: 'bar'},
        {type: 'bar'}
    ]
};

if (option && typeof option === 'object') {
    myChart.setOption(option);
}

        </script>
    </body>
</html>
    